package com.cssw.fyzb.core.dao.user;

import com.cssw.fyzb.core.model.dodb.AvatarPendantDef;
import com.cssw.fyzb.core.model.dodb.UserRel;
import com.ydn.dbframe.plugin.activerecord.Db;
import com.ydn.dbframe.plugin.activerecord.parse.SqlParse;
import org.springframework.stereotype.Repository;

import java.util.HashMap;
import java.util.List;
import java.util.Map;

@Repository
public class AvatarPendantDefDaoImpl implements AvatarPendantDefDao {

    @Override
    public List<AvatarPendantDef> listValid() {
        String sql = "select * from t_avatar_pendant_def where status = '1'";
        return AvatarPendantDef.dao.find(sql);
    }

    @Override
    public AvatarPendantDef getById(Long pendantId) {
        return AvatarPendantDef.dao.findById(pendantId);
    }


}
